﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace PFMApp
{
    class 选择路径
    {

        FolderBrowserDialog fbd = new FolderBrowserDialog();
        
        OpenFileDialog ofd = new OpenFileDialog();
        public string   OFD(){
            string sFileName=null;
           if( ofd.ShowDialog()==DialogResult.OK)
           {
                sFileName = ofd.FileName;
           }
           return sFileName;
        }
        public string SFD()
        {
            string sFileName = null;
            fbd.Description = "请选择压缩的路径";
            if(fbd.ShowDialog()==DialogResult.OK)
            {
                sFileName = fbd.SelectedPath;
            }
            return sFileName;
        }
    }
}
